package com.bestcem.xm.ticket.grpc.client.enums.messagecenter;

import com.bestcem.xm.messagecenter.grpc.v1.services.MessageTemplateType;
import lombok.Getter;
import lombok.ToString;

/**
 * 消息中心 消息模板类型 枚举
 *
 * @author XiaoYunSong <ys.xiao@idiaoyan.com>
 * @version v1.0
 * @date 2021/11/24 11:06
 */
@ToString
@Getter
public enum TemplateTypeEnum {
    /*
     * 邮件模板
     */
    EMAIL(0, "邮件模板", MessageTemplateType.EMAIL),

    /*
     * 短信模板
     */
    SMS(1, "短信模板", MessageTemplateType.SMS);

    private final Integer index;

    private final String name;

    private final MessageTemplateType info;

    TemplateTypeEnum(Integer index, String name, MessageTemplateType info) {
        this.name = name;
        this.index = index;
        this.info = info;
    }
}
